/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.svh.Dao;

import com.svh.Utils.DataBaseException;
import java.util.List;

/**
 *
 * @author David
 */
public interface GenericDao<T> {    
    
    public void agregar(T t) throws DataBaseException;
    
    public void eliminar(T t) throws DataBaseException;
    
    public void actualizar(T t) throws DataBaseException;
    
    public List<T> obtenerTodos(Class<T> clase)throws DataBaseException;
    
    public T buscarPorId(Class<T> clase, int id)throws DataBaseException;
    
    
}
